import request from '@/utils/request'

// 查询资源调查列表
export function listSurvey(query) {
  return request({
    url: '/resourceInfo/page',
    method: 'post',
    data: query
  })
}

// 查询资源调查详细
export function getSurvey(id) {
  return request({
    url: '/resourceInfo/page/' + id,
    method: 'get'
  })
}

// 新增资源调查
export function addSurvey(data) {
  return request({
    url: '/resourceInfo',
    method: 'post',
    data: data
  })
}

// 修改资源调查
export function updateSurvey(data) {
  return request({
    url: '/resourceInfo',
    method: 'put',
    data: data
  })
}

// 删除资源调查
export function delSurvey(ids) {
  return request({
    url: '/resourceInfo',
    method: 'delete',
    data: ids
  })
}